package com.twetec.cms.dao.mapper.system;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.twetec.cms.model.po.system.SystemApiWhiteListPO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhxl
 * @since 2021-03-16
 */
public interface SystemApiWhiteListMapper extends BaseMapper<SystemApiWhiteListPO> {

    @Select("SELECT " +
            "SAWL.*, " +
            "UU.NAME AS modifierName " +
            "FROM " +
            "SYSTEM_API_WHITE_LIST SAWL " +
            "LEFT JOIN UCENTER_USER UU ON SSP.MODIFIER_ID = UU.ID " +
            "${ew.customSqlSegment}")
    Page<SystemApiWhiteListPO> pageSearchList(Page<SystemApiWhiteListPO> page, @Param(Constants.WRAPPER) QueryWrapper<SystemApiWhiteListPO> queryWrapper);
}
